class DidaticMaterial < ActiveRecord::Base

  belongs_to :lesson
  belongs_to :content

  validates_presence_of :description
  validates_presence_of :content
  validates_presence_of :lesson
  
  validates_uniqueness_of :content_id, :scope => [:lesson_id]
  
end
